package ThreadSafeDemo;

import java.util.concurrent.ThreadPoolExecutor;

public class ThreadTest {
    public static void main(String[] args) {
        //创建一个账户对象，代表两人共同账户
        Account acc = new Account("ICBC01",100000);
        //创建两个线程类分别代表小红，小明两人在同一个账号对象取钱

        new DrawThread(acc,"小榕").start();//小红
        new DrawThread(acc,"小文").start();//小明

    }
}
